﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/MasterPages/Dialog.Master" AutoEventWireup="true" CodeBehind="BaseInfoForm.aspx.cs" Inherits="DMS.Web.Modules.ArchivesManagement.BaseInfoForm" %>
<%@ Register Src="~/Modules/ArchivesManagement/ArchInfoList.ascx" TagName="ArchInfoList" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageTitle" runat="server">    
    <%=PageTitle %>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainHolder" runat="server">
    <script type="text/javascript">
        function getClientIds() {
            return {
                type: '#<%= Type.ClientID %>',
                baseInfoID: '#<%=BaseInfoID.ClientID %>'
            };
        }

        function exportList() {
            window.open('/Resources/Templates/资料信息导入模板-单个.xls');
        }

        function deleteRecord(obj) {
           if (confirm('确定要删除该条记录？')) {
               $(obj).parent().parent().hide();
                alert('删除成功！');
            }
        }

        function searchForm() {
            $('#MainHolder_gvList tr').hide();
            $('.searchResult').show();
        }

//        function openForm() {
//            window.open("ArchInfoForm.aspx");
//        }
    </script>
    <script type="text/javascript" src="/Modules/ArchivesManagement/Scripts/BaseInfoForm.js"></script>
    <fieldset>
    <legend>
        基本信息
    </legend>

    <!--<asp:LinkButton  ID="btnCopy" Text="从已有办公地点中复制"  OnClientClick="javascript:Copy();" runat="server"></asp:LinkButton>-->

    <div id="divContent" style="padding-top: 5px;" runat="server">
        <table cellpadding="1" cellspacing="2" border="0" class="orderformitem" width="98%">
            
            <tr>
                <th>
                    <nobr>
                        档案盒编号：
                    </nobr>
                </th>
                <td>
                    <asp:HiddenField ID="BaseInfoID" runat="server" />
                    <asp:HiddenField ID="Type" runat="server" />
                    <asp:HiddenField ID="DeptName" runat="server"></asp:HiddenField>
                    <asp:HiddenField ID="DeptID" runat="server"></asp:HiddenField>
                    <asp:TextBox ID="BoxCode" runat="server"></asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="BoxCode"
                        runat="server" ErrorMessage="请输入！"  ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
                <th>
                    <nobr>
                        档案盒所在位置：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="BoxPosition" runat="server"></asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="BoxPosition"
                        runat="server" ErrorMessage="请输入！" ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <th>
                    <nobr>
                        <label style="display:<%=DefaultDisplayStyle%>">
                            单位社保号：
                        </label>
                        <label style="display:<%=GRDisplayStyle%>">
                            个人社保号：
                        </label>
                        <img class="loadingImg" id="InsuranceCodeChecking" src="../../Resources/Scripts/jquery-ui/demos/autocomplete/images/ui-anim_basic_16x16.gif" style="display: none;"/>
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="InsuranceCode" onblur="CheckInsuranceCode(this)" runat="server"></asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="InsuranceCode"
                        runat="server" ErrorMessage="请输入！"  ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
                <th style="display:<%=DefaultDisplayStyle%>">
                    <nobr>
                        单位名称：
                        <img class="loadingImg"  id="UnitNameChecking" src="../../Resources/Scripts/jquery-ui/demos/autocomplete/images/ui-anim_basic_16x16.gif" style="display: none;"/>
                    </nobr>
                </th>
                <td style="display:<%=DefaultDisplayStyle%>">
                    <asp:TextBox ID="UnitName" Width="190" onblur="CheckUnitName(this);" runat="server"></asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="UnitNameValidator" ControlToValidate="UnitName"
                        runat="server" ErrorMessage="请输入！" ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
                <th style="display:<%=GRDisplayStyle%>">
                    <nobr>
                        缴费人姓名：
                        <img class="loadingImg"  id="Img1" src="../../Resources/Scripts/jquery-ui/demos/autocomplete/images/ui-anim_basic_16x16.gif" style="display: none;"/>
                    </nobr>
                </th>
                <td style="display:<%=GRDisplayStyle%>">
                    <asp:TextBox ID="PayerName" runat="server"></asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="PayerNameValidator" ControlToValidate="PayerName" Enabled="False"
                        runat="server" ErrorMessage="请输入！" ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <th>
                    <nobr>
                        纳税编码：
                        <img class="loadingImg"  id="TaxCodeChecking" src="../../Resources/Scripts/jquery-ui/demos/autocomplete/images/ui-anim_basic_16x16.gif" style="display: none;"/>
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="TaxCode" onblur="CheckTaxCode(this);" runat="server"></asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="TaxCode"
                        runat="server" ErrorMessage="请输入！"  ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
                <th>
                    <nobr>
                        缴费单位类型：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="PayUnitType" runat="server"></asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ControlToValidate="PayUnitType"
                        runat="server" ErrorMessage="请输入！" ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
            </tr>
            
            <tr>
                <th>
                    <nobr>
                        社保登记日期：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="RegistDate"  onClick="WdatePicker()" runat="server"></asp:TextBox>
                </td>
                <th style="display:<%=DefaultDisplayStyle%>">
                    <nobr>
                        参保人数（人）：
                    </nobr>
                </th>
                <td style="display:<%=DefaultDisplayStyle%>">
                    <asp:TextBox ID="InsuranceCount" runat="server" onblur="if(this.value&&parseInt(this.value)!=this.value){alert('请输入合法数字！');this.value='';$(this).focus();}"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    <nobr>
                        参保险种：
                    </nobr>
                </th>
                <td colspan="3">
                    <asp:CheckBox ID="Yanglao" Checked="False" Text="养老" runat="server"/>&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:CheckBox ID="Gongshang" Text="工伤" runat="server"/>&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:CheckBox ID="Shiye" Text="失业" runat="server"/>&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:CheckBox ID="Yiliao" Text="医疗" runat="server"/>&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:CheckBox ID="Shengyu" Text="生育" runat="server"/>
                </td>
            </tr>
            <tr>
            <th>
                <nobr>
                    专管员：
                </nobr>
            </th>
            <td>
                <asp:TextBox ID="Admin"  runat="server"></asp:TextBox>
            </td>
            <th style="display:<%=DefaultDisplayStyle%>">
                <nobr>
                    联系人：
                </nobr>
            </th>
            <td style="display:<%=DefaultDisplayStyle%>">
                <asp:TextBox ID="Contact" runat="server"></asp:TextBox>
               
            </td>
                
            </tr>
            <tr>   
                <th>
                    <nobr style="display:<%=DefaultDisplayStyle%>">
                        联系电话（手机）：
                    </nobr>
                    <nobr style="display:<%=GRDisplayStyle%>">
                        联系电话：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="Mobile" runat="server"></asp:TextBox>
                </td>             
                <th style="display:<%=DefaultDisplayStyle%>">
                    <nobr>
                        联系电话（座机）：
                    </nobr>
                </th>
                <td style="display:<%=DefaultDisplayStyle%>">
                    <asp:TextBox ID="Phone" runat="server"></asp:TextBox>
                </td>
                <th style="display:<%=GRDisplayStyle%>">
                    <nobr>
                        身份证号码：
                    </nobr>
                </th>
                <td style="display:<%=GRDisplayStyle%>">
                    <asp:TextBox ID="IdentityCardNo" runat="server"></asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="IdentityCardNoValidator" ControlToValidate="IdentityCardNo" Enabled="False"
                        runat="server" ErrorMessage="请输入！" ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <th>
                    <nobr>
                        备注：
                    </nobr>
                </th>
                <td colspan="3">
                    <asp:TextBox ID="Remark" TextMode="MultiLine" Rows="5" Width="96%" runat="server"></asp:TextBox>
                </td>
            </tr>
    </table></div>
    </fieldset>
            
    <uc1:ArchInfoList ID="ArchInfoList" runat="server" />

</asp:Content>

<asp:Content ID="ctFooter"  ContentPlaceHolderID="FooterHolder" runat="server">
<asp:LinkButton ID="btnSave" CssClass="linkbtn" runat="server" OnClick="btnSave_Click"
        CausesValidation="true"><span>保存</span></asp:LinkButton>&nbsp;&nbsp;
<a href="javascript:window.opener=null;window.open('','_self').close();" class="linkbtn"><span>关闭</span></a>
</asp:Content>